using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Framework.Library.DAO;
using Framework.Library.Domain;
using NHibernate.Criterion;
namespace Framework.Portal
{
    public partial class Test : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {            
            if (!IsPostBack)
            {
                IManagerFactory daoFactory = new ManagerFactory();
                IPortalModulecontrolManager dao = daoFactory.GetPortalModulecontrolManager();
                //ICriterion user = Expression.Eq("Id", 1);
                //ICriterion id = Expression.Eq("PortalModule.ModuleName", 1);
                customerList.DataSource = dao.GetByCriteria();//user);//, id);
                customerList.DataBind();
            }
        }
    }
}
